package com.example.common.exception;

import com.example.common.response.ServerCode;

/**
 * @Description:
 * @Auther: Swain
 * @Date: 2021/1/12 17:46
 * @Version 1.0.0
 */
public class ConcurrentException extends BaseException {

    private int code;

    private String msg;

    public ConcurrentException() {
        super();
        this.code = ServerCode.CONCURRENT_ERROR.getCode();
        this.msg = ServerCode.CONCURRENT_ERROR.getDesc();
    }

    public ConcurrentException(String msg) {
        super(msg);
        this.code = ServerCode.CONCURRENT_ERROR.getCode();
        this.msg = msg;
    }


}